/* ================ 整体基础样式 ================ */
.root {
    -fx-font-family: "Microsoft YaHei";
    -fx-background-color: #f8f9fa;
}

/* ================ 侧边栏样式 ================ */
.side-menu {
    -fx-background-color: #357435;
    -fx-border-width: 0 1px 0 0;
    -fx-border-color: #ffffff;
    -fx-padding: 20px 0;
    -fx-spacing: 15px;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.03), 5, 0, 1, 0);
    -fx-alignment: TOP_CENTER;
}

/* 普通状态 */
.side-menu-button {
    -fx-background-color: #388f3a;
    -fx-text-fill: #000000;
    -fx-alignment: CENTER;
    -fx-padding: 10px 20px;
    -fx-font-size: 20px;
    -fx-cursor: hand;
    -fx-background-radius: 5px;
    -fx-border-radius: 5px;
    -fx-min-width: 200px;
    -fx-font-weight: 500;
}

.side-menu-button:hover {
    -fx-background-color: #f1f3f5;
}

.side-menu-button:selected {
    -fx-background-color: #1c491c !important;
    -fx-text-fill: #000000 !important;
    -fx-border-width: 0 0 0 5px !important;
    -fx-border-color: #000000 !important;
    -fx-font-weight: bold;
}

/* ================ 表格样式 ================ */
.table-view .column-header {
    -fx-background-color: #2ecc71;
    -fx-text-fill: white;
    -fx-font-weight: bold;
    -fx-padding: 10 8px;
}

.table-row-cell {
    -fx-background-color: white;
    -fx-border-color: #f5f5f5;
    -fx-border-width: 0 0 1 0;
    -fx-text-fill: black;
}

.table-row-cell:odd {
    -fx-background-color: #f9f9f9;
}

/* ================ 表头 ================ */
.table-view .column-header:hover {
    -fx-background-color: #27ae60;
}

/* ================ 表头排序指示器 ================ */
.table-view .column-header .sort-order {
    -fx-text-fill: #f1c40f;
}

/* ================ 表格列对齐 ================ */
.table-column {
    -fx-alignment: CENTER-LEFT; /* 左对齐 */
}

/* ID列右对齐 */
.table-column[id-column] {
    -fx-alignment: CENTER-RIGHT;
}

/* 操作列居中 */
.table-column[operation-column] {
    -fx-alignment: CENTER;
}
/* ================ 表格样式 ================ */

/* ================ 顶部工具栏样式 ================ */
.top-toolbar {
    -fx-background-color: white;
    -fx-padding: 15 20;
    -fx-spacing: 15;
    -fx-alignment: CENTER_LEFT;
    -fx-border-width: 0 0 1px 0;
    -fx-border-color: #dee2e6;
}

.title-label {
    -fx-font-size: 20px;
    -fx-font-weight: bold;
    -fx-text-fill: #343a40;
}

.search-field {
    -fx-prompt-text-fill: #adb5bd;
    -fx-background-radius: 20;
    -fx-border-radius: 20;
    -fx-padding: 5 12;
}

/* ================ 操作按钮 ================ */
.action-button {
    -fx-background-color: #3498db;
    -fx-text-fill: white;
    -fx-min-width: 60;
    -fx-background-radius: 4px;
    -fx-padding: 5 8;
    -fx-font-size: 12px;
}

.delete-button {
    -fx-background-color: #e74c3c;
    -fx-background-radius: 4px;
    -fx-padding: 5 8;
    -fx-font-size: 12px;
    -fx-text-fill: white;
}

.action-button:hover {
    -fx-background-color: #2980b9;
}

.delete-button:hover {
    -fx-background-color: #c0392b;
}